import { request } from '@/utils/service'
import type * as Expense from '@/api/expense/types/expense'

export function queryDepositRefund(data: Expense.queryDepositRefundRequestData) {
  return request<Expense.queryDepositRefundResponse>({
    url: '/queryDepositRefund',
    method: 'post',
    data
  })
}
export function queryRefundApply(data: Expense.queryRefundApplyRequestData) {
  return request<Expense.queryRefundApplyResponse>({
    url: '/queryRefundApply',
    method: 'post',
    data
  })
}
export function queryRefundDetail(data: Expense.queryRefundDetailRequestData) {
  return request<Expense.queryRefundDetailResponse>({
    url: '/queryRefundDetail',
    method: 'post',
    data
  })
}
export function queryCmRefundApply(data: Expense.queryCmRefundApplyRequestData) {
  return request<Expense.queryCmRefundApplyResponse>({
    url: '/queryCmRefundApply',
    method: 'post',
    data
  })
}
export function submitCmRefundApply(data: Expense.submitCmRefundApplyRequestData) {
  return request<Expense.submitCmRefundApplyResponse>({
    url: '/submitCmRefundApply',
    method: 'post',
    data
  })
}
/** 重新提交押金退款 */
export function resubmitDepositRefund(data: Expense.resubmitDepositRefundRequestData) {
  return request<Expense.resubmitDepositRefundResponse>({
    url: '/resubmitDepositRefund',
    method: 'post',
    data
  })
}
export function calculateRefundAmount(data: Expense.calculateRefundAmountRequestData) {
  return request<Expense.calculateRefundAmountResponse>({
    url: '/calculateRefundAmount',
    method: 'post',
    data
  })
}
export function shortTermChargeRefund(data: Expense.shortTermChargeRefundRequestData) {
  return request<Expense.shortTermChargeRefundResponse>({
    url: '/shortTermChargeRefund',
    method: 'post',
    data
  })
}
export function queryShortTermChargeRefund(data: Expense.queryShortTermChargeRefundRequestData) {
  return request<Expense.queryShortTermChargeRefundResponse>({
    url: '/queryShortTermChargeRefund',
    method: 'post',
    data
  })
}
/** 查询其他收费 */
export function queryOtherCharge(data: Expense.queryOtherChargeRequestData) {
  return request<Expense.queryOtherChargeResponse>({
    url: '/queryOtherCharge',
    method: 'post',
    data
  })
}
/** 新建其他收费 */
export function otherChargeRefund(data: Expense.otherChargeRefundRequestData) {
  return request<Expense.otherChargeRefundResponse>({
    url: '/otherChargeRefund',
    method: 'post',
    data
  })
}
/** 其他收费代付调整 */
export function adjustOtherCharge(data: Expense.adjustOtherChargeRequestData) {
  return request<Expense.adjustOtherChargeResponse>({
    url: '/adjustOtherCharge',
    method: 'post',
    data
  })
}
/** 获取申诉审批列表 */

export function queryOrderAppeal(data: Expense.queryOrderAppealRequestData) {
  return request<Expense.queryOrderAppealResponse>({
    url: '/queryOrderAppeal',
    method: 'post',
    data
  })
}
/** 审批申诉 */

export function approveOrderAppeal(data: Expense.approveOrderAppealRequestData) {
  return request<Expense.approveOrderAppealResponse>({
    url: '/approveOrderAppeal',
    method: 'post',
    data
  })
}

/** 查询押金抵扣 */

export function queryDepositDeduction(data: Expense.queryDepositDeductionRequestData) {
  return request<Expense.queryDepositDeductionResponse>({
    url: '/queryDepositDeduction',
    method: 'post',
    data
  })
}
/** 申请押金抵扣 */

export function submitDepositDeduction(data: Expense.submitDepositDeductionRequestData) {
  return request<Expense.submitDepositDeductionResponse>({
    url: '/submitDepositDeduction',
    method: 'post',
    data
  })
}
/** 撤销押金抵扣 */

export function revokeDepositDeduction(data: Expense.revokeDepositDeductionRequestData) {
  return request<Expense.revokeDepositDeductionResponse>({
    url: '/revokeDepositDeduction',
    method: 'post',
    data
  })
}
